﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace StarClub.Web.UserControl
{
    public partial class UCFootSeach : System.Web.UI.UserControl
    {
        /// <summary>
        /// 当筛选时触发
        /// </summary>
        public event EventHandler Seach;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.txbseach.Text.Trim() == "" || this.txbseach.Text.Trim() == "请输入关键字")
                SeachText = "";
            else
                SeachText = this.txbseach.Text.Trim();
        }

        protected void btnseach_Click(object sender, EventArgs e)
        {
            if (this.txbseach.Text.Trim() == "" || this.txbseach.Text.Trim() == "请输入关键字")
                SeachText = "";
            else
                SeachText = this.txbseach.Text.Trim();
            if (Seach != null)
                Seach(sender, e);
        }
        public string SeachText { get; set; }
    }
}